package com.testerhome.pages;

/**
 * @author sunliancheng
 * @date 2023/10/26
 */
public class SelfLogger {
    public final static ThreadLocal<StringBuilder> threadLocal = new ThreadLocal();

    public static void info(String txt){
        System.out.println(txt);
        StringBuilder stringBuilder = threadLocal.get();
        if (stringBuilder == null) {
            SelfLogger.threadLocal.set(new StringBuilder());
        }
        threadLocal.get().append(txt);
    }
}
